import request from '@/utils/request'

// 库房列表
export function warehouseListRequest(params) {
    return request({
        url: `/api/v1/warehouse/setting/list`,
        method: 'POST',
        data: params
    })
}
// 库房新增
export function warehouseAdd(params) {
  return request({
      url: `/api/v1/warehouse/setting/add`,
      method: 'POST',
      data: params
  })
}
// 库房详情
export function warehouseDetail(id) {
  return request({
      url: `/api/v1/warehouse/setting/detail/${id}`,
      method: 'GET',
  })
}
// 库房编辑
export function warehouseEdit(params) {
  return request({
      url: `/api/v1/warehouse/setting/update`,
      method: 'POST',
      data: params
  })
}
// 库房删除
export function warehouseRemove(id) {
  return request({
      url: `/api/v1/warehouse/setting/delete/${id}`,
      method: 'GET',
  })
}
export function warehouseAllList(data){
  return request(
    {
      url:"/api/v1/warehouse/setting/pagelist",
      method:"Post",
      data:data,
    }
  )
}